package com.oracle.pojo;

import java.util.Date;

public class Commodity {
    private Integer id;

    private String name;

    private String salePoint;

    private String cid;

    private Float price;

    private Integer store;

    private Integer state;

    private Date addTime;

    private Date updateTime;

    private String url;

    private String detail;

    public Commodity(Integer id, String name, String salePoint, String cid, Float price, Integer store, Integer state, Date addTime, Date updateTime, String url, String detail) {
        this.id = id;
        this.name = name;
        this.salePoint = salePoint;
        this.cid = cid;
        this.price = price;
        this.store = store;
        this.state = state;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.url = url;
        this.detail = detail;
    }

    public Commodity() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSalePoint() {
        return salePoint;
    }

    public void setSalePoint(String salePoint) {
        this.salePoint = salePoint == null ? null : salePoint.trim();
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }
}